package com.jrx.anytxn.reporting.job.lsFile.step;

import com.jrx.anytxn.reporting.service.ILSFileService;
import com.jrx.anytxn.transaction.entity.TlThirdPartyPayment;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 生成还款流水文件 Processor
 *
 * @author liuyang
 * @date 2021-03-13
 */
@Service
public class LSThirdPaymentFileProcessor implements ItemProcessor<TlThirdPartyPayment, String> {

    @Autowired
    private ILSFileService fileService;

    @Override
    public String process(TlThirdPartyPayment item) {
        String result = fileService.createLSThirdPaymentFileMessage(item);
        return result;
    }
}
